package leetcode;

public class 证明字符串是不可变的 {

    public static void main(String[] args) {
        String s1 = "test";
        String s2 = s1;
        System.out.println(s1 == s2);

        s1 = "hesh";
        System.out.println(s1 == s2);
    }
}
